package com.itheima.movement.mapper;

import com.itheima.entity.pojo.MovementLike;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

/**
 * @author :wujunjie
 * createTime :2022-12-23 14:31
 * description :
 */
@Mapper
public interface MovementLikeMapper {
    List<MovementLike> selectByMovementIds(@Param("movementIds") ArrayList<String> movementIds);

    Boolean insertLike(@Param("movementLike") MovementLike movementLike);

    Boolean deleteLike(@Param("id") String id);

    MovementLike selectByMovementIdAndUserId(@Param("movementId") String movementId, @Param("id") String id);
}
